(function () {
	var objects = document.getElementsByTagName('embed');

	for (var i = 0; i < objects.length; i++) {
		var flash = objects[i];

		if (flash.type == 'application/x-shockwave-flash') {
      console.log('Flash found!');
      /*
			var placeholder = document.createElement("div");

			placeholder.style.cursor='pointer';
			placeholder.style.background='orange'; // 'gray '
			placeholder.style.textAlign='center';
			placeholder.style.color='black';
			placeholder.innerHTML="[Play Flash]";

			flash.parentNode.insertBefore(placeholder, flash);
			flash.on=false;

			placeholder.addEventListener(
				'click',
				function() {
					if (flash.on) {
						flash.style.display='none';
						placeholder.innerHTML="[Play Flash]";
						flash.on=false;
					}
					else {
						flash.style.display='';
						placeholder.innerHTML="[Stop Flash]";
						flash.on=true;
					}
				},
				true
			);
			flash.style.display='none';*/
      console.log(flash.src);
      flash.style.display = 'none';
		}
	}
})();